import 'package:flutter/material.dart';
import 'package:wheel_of_fortune/utils/utils.dart';

import 'widgets/earn_candy_item.dart';

class EarnCandyPage extends StatefulWidget {
  EarnCandyPage({Key key}) : super(key: key);

  @override
  _EarnCandyPageState createState() => _EarnCandyPageState();
}

class _EarnCandyPageState extends State<EarnCandyPage> {
  @override
  Widget build(BuildContext context) {
    return Container(
      child: Scaffold(
        appBar: AppBar(
          title: Text('Earn Candy', style: TextStyle(color: Colors.white, fontSize: 15,fontWeight: FontWeight.w400,),),
          centerTitle: true,
        ),
        body: ListView.separated(
          shrinkWrap: true,
          physics: BouncingScrollPhysics(),
          itemCount: 10,
          itemBuilder: (c,index){
            return EarnCandyItem();
          }, 
          separatorBuilder: (c,index){
            return Container(height: 0.5,color: greyDBColor,);
          }, 
        ), 
      ),
    );
  }
}